package tx.algoritmiek.week2;

public class EndNode extends Node {
	private GameObject gameObject;

	public EndNode(SplitNode parent, GameObject gameObject) {
		super(parent);
		this.gameObject = gameObject;
	}

	public GameObject getGameObject() {
		return gameObject;
	}

	public void setGameObject(GameObject gameObject) {
		this.gameObject = gameObject;
	}

    @Override
    public double getLowerBound(int index) {
        return gameObject.getPosition(index);
    }

    @Override
    public double getUpperBound(int index) {
        return gameObject.getPosition(index);
    }
}
